﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;


namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_spm_Sales_Gv_4 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } } private string _ID; public static FieldInfo iD = new FieldInfo("spm_Sales_1", "ID");
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } } private string _Process; public static FieldInfo process = new FieldInfo("spm_Sales_1", "Process");
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } } private int _Incident; public static FieldInfo incident = new FieldInfo("spm_Sales_1", "Incident");
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } } private string _UserName; public static FieldInfo userName = new FieldInfo("spm_Sales_1", "UserName");
        //[Column]
        //public string Sales_Office_1 { get { return _Sales_Office_1; } set { _Sales_Office_1 = value; EntityState.FieldChange("Sales_Office_1"); } } private string _Sales_Office_1; public static FieldInfo sales_Office_1 = new FieldInfo("spm_Sales_1", "Sales_Office_1");
        //[Column]
        //public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } } private string _Type; public static FieldInfo type = new FieldInfo("spm_Sales_1", "Type");
        //[Column]
        //public string Sales_Region { get { return _Sales_Region; } set { _Sales_Region = value; EntityState.FieldChange("Sales_Region"); } } private string _Sales_Region; public static FieldInfo sales_Region = new FieldInfo("spm_Sales_1", "Sales_Region");
        //[Column]
        //public string Divison { get { return _Divison; } set { _Divison = value; EntityState.FieldChange("Divison"); } } private string _Divison; public static FieldInfo divison = new FieldInfo("spm_Sales_1", "Divison");
        [Column]
        public string Sap_Code { get { return _Sap_Code; } set { _Sap_Code = value; EntityState.FieldChange("Sap_Code"); } } private string _Sap_Code; public static FieldInfo sap_Code = new FieldInfo("spm_Sales_1", "Sap_Code");
        [Column]
        public string Sold_CN_Name { get { return _Sold_CN_Name; } set { _Sold_CN_Name = value; EntityState.FieldChange("Sold_CN_Name"); } } private string _Sold_CN_Name; public static FieldInfo sold_CN_Name = new FieldInfo("spm_Sales_1", "Sold_CN_Name");
        [Column]
        public string Old_Sap_Code { get { return _Old_Sap_Code; } set { _Old_Sap_Code = value; EntityState.FieldChange("Old_Sap_Code"); } } private string _Old_Sap_Code; public static FieldInfo old_Sap_Code = new FieldInfo("spm_Sales_1", "Old_Sap_Code");
        //[Column]
        //public string Old_Name { get { return _Old_Name; } set { _Old_Name = value; EntityState.FieldChange("Old_Name"); } } private string _Old_Name; public static FieldInfo old_Name = new FieldInfo("spm_Sales_1", "Old_Name");
        [Column]
        public string Old_CN_Name { get { return _Old_CN_Name; } set { _Old_CN_Name = value; EntityState.FieldChange("Old_CN_Name"); } } private string _Old_CN_Name; public static FieldInfo old_CN_Name = new FieldInfo("spm_Sales_1", "Old_CN_Name");
        [Column]
        public string New_Sap_Code { get { return _New_Sap_Code; } set { _New_Sap_Code = value; EntityState.FieldChange("New_Sap_Code"); } } private string _New_Sap_Code; public static FieldInfo new_Sap_Code = new FieldInfo("spm_Sales_1", "New_Sap_Code");
        [Column]
        public string New_CN_Name { get { return _New_CN_Name; } set { _New_CN_Name = value; EntityState.FieldChange("New_CN_Name"); } } private string _New_CN_Name; public static FieldInfo new_CN_Name = new FieldInfo("spm_Sales_1", "New_CN_Name");
        //[Column]
        //public string New_Name { get { return _New_Name; } set { _New_Name = value; EntityState.FieldChange("New_Name"); } } private string _New_Name; public static FieldInfo new_Name = new FieldInfo("spm_Sales_1", "New_Name");
        [Column]
        public string E_Mail { get { return _E_Mail; } set { _E_Mail = value; EntityState.FieldChange("E_Mail"); } } private string _E_Mail; public static FieldInfo e_Mail = new FieldInfo("spm_Sales_2", "E_Mail");
        [Column]
        public string Tel { get { return _Tel; } set { _Tel = value; EntityState.FieldChange("Tel"); } } private string _Tel; public static FieldInfo tel = new FieldInfo("spm_Sales_2", "Tel");
        [Column]
        public string Vendor_Code { get { return _Vendor_Code; } set { _Vendor_Code = value; EntityState.FieldChange("Vendor_Code"); } } private string _Vendor_Code; public static FieldInfo vendor_Code = new FieldInfo("spm_Sales_2", "Vendor_Code");


        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("spm_Sales_1", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("spm_Sales_1", "Status");

        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } }
        private string _Department;
        public static FieldInfo department = new FieldInfo("cmd_Customer", "Department");

        [Column]
        public string ApplicationNo { get { return _ApplicationNo; } set { _ApplicationNo = value; EntityState.FieldChange("ApplicationNo"); } }
        private string _ApplicationNo;
        public static FieldInfo applicationNo = new FieldInfo("cmd_Customer", "ApplicationNo");

    }
}
